package org.lwd.datalink.service.impl;

import org.lwd.datalink.domain.task.TaskExceptionInfo;
import org.lwd.datalink.mapper.TaskExceptionMapper;
import org.lwd.datalink.service.TaskExceptionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 异常任务
 *
 * @Author: weidong.lin
 * @Date: create in 2024/4/9 14:22
 */
@Service
public class TaskExceptionServiceImpl implements TaskExceptionService {

    @Resource
    private TaskExceptionMapper taskExceptionMapper;

    @Override
    public Boolean insert(TaskExceptionInfo taskExceptionInfo) {
        Integer num = taskExceptionMapper.insert(taskExceptionInfo);
        return num > 0;
    }
}
